<?php

namespace app\common\validate;

use think\Validate;

class AgentShop extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
    	'name' => 'require',
	    'username' => 'require',
	    'mobile' => 'require',
	    'image' => 'require',
	    'provice_id' => 'require',
	    'address' => 'require',
	    'lat' => 'require'
    ];
    /**
     * 提示消息
     */
    protected $message = [
    	'name' => '门店名称不能为空',
	    'username' => '姓名不能为空',
	    'mobile' => '联系方式不能为空',
	    'image' => '门店照片不能为空',
	    'provice_id' => '地区不能为空',
	    'address' => '地址不能为空',
	    'lat' => '定位不能为空',
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => [],
        'edit' => [],
    ];
    
}
